<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateStaffTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('staff', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name')->nullable()->comment('备注');
            $table->string('sex')->nullable()->comment('性别');
            $table->integer('age')->nullable()->comment('年龄');
            $table->integer('type')->nullable()->comment('类型id');
            $table->integer('jobId')->nullable()->comment('职务id');
            $table->string('code')->nullable()->comment('编码');
            $table->string('phone')->nullable()->comment('手机号码');
            $table->string('tel')->nullable()->comment('座机');
            $table->string('address')->nullable()->comment('地址');
            $table->string('email')->nullable()->comment('email');
            $table->string('QQ')->nullable()->comment('qq');
            $table->string('weixin')->nullable()->comment('微信');
            $table->string('other1')->nullable()->comment('其他信息');
            $table->string('other2')->nullable()->comment('其他信息');
            $table->string('other3')->nullable()->comment('其他信息');
            $table->string('other4')->nullable()->comment('其他信息');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('staff');
    }
}
